package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.field.LinkFormPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/11/1 10:50
 * @desrcption: 联动其他表单获取数据
 */
@Getter
@Setter
@ToString
public class LinkFormDataDTO extends BaseDTO {
    private static final long serialVersionUID = -7037875964913997046L;

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 字段标识
     */
    @NotNull(message = "{dto.msg.linkFormData.attr.NotNull}")
    private String attr;

    /**
     * 子表单
     */
    private String subAttr;

    @Valid
    private LinkFormPoJo linkForm;

    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;
    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

    /**
     * 模糊搜索的值
     */
    private Object value;
    /**
     * 来源业务
     */
    private Integer fromBusinessType;
    /**
     * 来源业务的关联字段
     */
    private String linkAttr;
    /**
     * 是否来源于评分
     */
    private Integer forScore;
}
